package com.example.demo.testOne;

import cn.hutool.core.util.StrUtil;

/**
 * @description 字符串截取$
 *
 * @author lilinchun
 * @date 2023/06/17
 */
public class demo3 {

    public static void main(String[] args) {

        String url = "https://ebc-prod.cdn.benwunet.com/c6abf169ad76423d8115e8462d9ee715.jpg";
        String cdn = "https://ebc-prod.cdn.benwunet.com";
        String newUrl = url.substring(cdn.length());
        System.out.println(newUrl);
        String s = StrUtil.subAfter(url, ".", true);
        System.out.println(s);

    }
}
